BASIC 3D COMMAND SET
3D Object files that are stored in the X format can be loaded using this command set. You are able to store over sixty thousand 3D objects at any one time. Each object can have an infinite number of sub-objects known as limbs and an infinite number of textures. Limbs are used to define different parts of your object. If the object contains texture references, the textures will be loaded automatically. Not only can objects be positioned, rotated and scaled anywhere in your scene, but they can also perform animation if the object contains animation data. When using 3D objects, you are only limited by the speed and capacity of your machine.
Click on any commands for more information:
BASIC 3D OBJECT COMMANDS
LOAD OBJECT will load a 3D object file into the specified object number
DELETE OBJECT will delete the specified 3D object previously loaded into object number
SET OBJECT will set the internal properties of a specified object
MAKE OBJECT will construct a 3D object from a single mesh and image
MAKE OBJECT SPHERE will construct a 3D object using a sphere mesh
MAKE OBJECT CUBE will construct a 3D object using a cube mesh
MAKE OBJECT BOX will construct a 3D object using a box mesh
MAKE OBJECT CYLINDER will construct a 3D object using a cylinder mesh
MAKE OBJECT CONE will construct a 3D object using a cone mesh
MAKE OBJECT PLAIN will construct a 3D object using a flat mesh
MAKE OBJECT TRIANGLE will construct a 3D object using a triangle mesh
APPEND OBJECT will append all animation data in the file to the specified object
PLAY OBJECT will play the animation data contained within the specified 3D object
LOOP OBJECT will loop the animation data contained within the specified 3D object
STOP OBJECT will stop the object animation data from playing
HIDE OBJECT will hide the specified 3D object from view
SHOW OBJECT will show a specified 3D object that was previously hidden
TEXTURE OBJECT will texture a specified 3D object
SCALE OBJECT will scale the specified 3D object to resize in all three dimensions
COLOR OBJECT will color the specified 3D object
SCROLL OBJECT TEXTURE will scroll the texture of the specified 3D object
SCALE OBJECT TEXTURE will scale the texture of the specified 3D object
SET OBJECT FRAME will set the animation frame of the specified 3D object
SET OBJECT SPEED will set the animation speed of the specified 3D object
SET OBJECT INTERPOLATION will set the rate of animation frame interpolation
SET OBJECT ROTATION XYZ will set the order of rotation to default
SET OBJECT ROTATION ZYX will reverse the order of rotation
GHOST OBJECT ON will make the specified 3D object semi-transparent
GHOST OBJECT OFF will turn off the effect of ghosting on the specified 3D object
FADE OBJECT will make the specified 3D object fade to the ambient light level
GLUE OBJECT TO LIMB will attach the specified 3D object to another objects limb
UNGLUE OBJECT will detach the specified 3D object from any limb
LOCK OBJECT ON will lock the specified 3D object to the screen
LOCK OBJECT OFF will unlock the specified 3D object from the screen
SET OBJECT TEXTURE different texture modes
DISABLE OBJECT ZDEPTH this command will make a object appear over other polygons
ENABLE OBJECT ZDEPTH this command will return object zdepth info to normal
OBJECT MATERIAL COMMANDS
SET OBJECT DIFFUSE describes how much diffuse light the object will reflect
SET OBJECT AMBIENT describes how much ambient light the object will reflect
SET OBJECT SPECULAR describes how an object reflects light to appear shiny
SET OBJECT EMISSIVE describes how the objects emmits light for self-lumination
ANIMATION COMMANDS
SAVE OBJECT ANIMATION this command will save a object animation to a file
APPEND OBJECT ANIMATION this command will append animation file
CLEAR ALL OBJECT KEYFRAMES this command will clear all the animation from a object
CLEAR OBJECT KEYFRAME this command will clear all the animation from a object
SET OBJECT KEYFRAME this will set the position of all limbs to an object keyframe
STATIC OBJECT COMMANDS
MAKE STATIC OBJECT will copy the specified 3D object as a static object
DELETE STATIC OBJECTS will delete all static objects
MAKE STATIC COLLISION BOX creates invisible collision zones
SET STATIC OBJECTS TEXTURE different texturing for statics
DISABLE STATIC OCCLUSION this command will deactivate the use of static occlusion
ENABLE STATIC OCCLUSION this command will activate the use of static occlusion
SAVE STATIC OBJECTS this command will save all static object data to a file
LOAD STATIC OBJECTS this command will load all static object data from a file
ATTACH OBJECT TO STATIC this command temporarily makes an object static
DETACH OBJECT FROM STATIC this command will remove a temporary static object
3D MOTION AND EULER ROTATION
POSITION OBJECT will place the specified 3D object in 3D space
ROTATE OBJECT will rotate the specified 3D object around it's X, Y and Z axis
XROTATE OBJECT will rotate the specified 3D object around it's X axis
YROTATE OBJECT will rotate the specified 3D object around it's Y axis
ZROTATE OBJECT will rotate the specified 3D object around it's Z axis
POINT OBJECT will point the specified 3D object towards a point in space
MOVE OBJECT will move the specified 3D object in the direction it is pointing
FIX OBJECT PIVOT will reset the object's orientation to zero without rotating it
FREE FLIGHT ROTATION
TURN OBJECT LEFT will rotate/yaw an object left, relative to the orientation
TURN OBJECT RIGHT will rotate/yaw an object right, relative to the orientation
PITCH OBJECT UP will rotate/pitch an object up, relative to the orientation
PITCH OBJECT DOWN will rotate/pitch an object down, relative to the orientation
ROLL OBJECT LEFT will rotate/roll an object left or CCW, relative to the orientation
ROLL OBJECT RIGHT will rotate/roll an object left or CW, relative to the orientation
SET OBJECT TO OBJECT ORIENTATION aligns the orientation of one object to another
SET OBJECT TO CAMERA ORIENTATION aligns the orientation of one object to the camera
COLLISION DETECTION
SET OBJECT COLLISION ON will set the object to be included in all collision activity
SET OBJECT COLLISION OFF will set the object to be excluded from all collision activity
MAKE OBJECT COLLISION BOX makes an object use box collision
DELETE OBJECT COLLISION BOX makes an object use normal collision
SET OBJECT COLLISION TO SPHERES will set the object limbs to sphere collision
SET OBJECT COLLISION TO BOXES will set the object limbs to box collision
SET OBJECT COLLISION TO POLYGONS will set the object limbs to polygon collision
SET GLOBAL COLLISION ON will allow the detection of collision with any two 3D objects
SET GLOBAL COLLISION OFF will turn off the influence of global collision
BASIC 3D LIMB COMMANDS
PERFORM CHECKLIST FOR OBJECT LIMBS will make a list of all 3D object limbs
HIDE LIMB will hide the specified limb within the 3D object
SHOW LIMB will show the specified limb within the 3D object
OFFSET LIMB will change the position of the specified limb within the 3D object
ROTATE LIMB will change the rotation of the specified limb within the 3D object
SCALE LIMB will change the scaling of the specified limb within the 3D object
ADD LIMB will create a new limb from a mesh and add it to an existing 3D object
LINK LIMB will link a newly added limb to the hierarchy of the main 3D object
TEXTURE LIMB will apply an existing image to the limb of a 3D object as a texture
COLOR LIMB will color the specified limb of a 3D object
SCROLL LIMB TEXTURE will scroll the texture of the specified limb of a 3D object
SCALE LIMB TEXTURE will scale the texture of the specified limb of a 3D object
BASIC 3D MESH COMMANDS
LOAD MESH will load a single mesh file into the specified mesh number
DELETE MESH will delete the specified mesh previously loaded
CHANGE MESH will change the mesh of a specified 3D object
MAKE MESH FROM OBJECT will make a mesh from a specified object
MISCELLANEOUS 3D COMMANDS
BACKDROP ON will turn on the fixed 3D backdrop
BACKDROP OFF will turn off the fixed 3D backdrop
COLOR BACKDROP will color the fixed 3D backdrop in any color
TEXTURE BACKDROP will texture the fixed 3D backdrop using an image
SCROLL BACKDROP will scroll the fixed 3D backdrop in any direction
DRAW TO FRONT will draw all 2D graphics over 3D renders
DRAW TO BACK will draw all 2D graphics behind 3D renders
SET MIPMAP MODE different mipmap modes
SET NORMALIZATION ON normalizes all 'normals' contained in 3D rendering data
SET NORMALIZATION OFF deactivates normalization of all 'normals' data
The next commands will return a result:
OBJECT EXIST() will return a one if the specified 3D object exists
TOTAL OBJECT FRAMES() will return the last frame number of the specified 3D object
OBJECT SIZE() will return the unit size of the specified 3D object
OBJECT POSITION X() will return the X position of the specified 3D object in 3D space
OBJECT POSITION Y() will return the Y position of the specified 3D object in 3D space
OBJECT POSITION Z() will return the Z position of the specified 3D object in 3D space
OBJECT ANGLE X() will return the X angle of the specified 3D object
OBJECT ANGLE Y() will return the Y angle of the specified 3D object
OBJECT ANGLE Z() will return the Z angle of the specified 3D object
OBJECT SIZE X() returns the full width of the object
OBJECT SIZE Y() returns the full height of the object
OBJECT SIZE Z() returns the full depth of the object
OBJECT VISIBLE() will return a one if the specified 3D object is visible
OBJECT PLAYING() will return a one if the specified 3D object is playing its animation
OBJECT LOOPING() will return a one if the specified 3D object is looping its animation
OBJECT FRAME() will return the current animation frame of the specified 3D object
OBJECT SPEED() will return the current animation speed of the specified 3D object
OBJECT INTERPOLATION() will return the current animation interpolation rate
OBJECT COLLISION() will return a one if the two specified 3D objects are overlapping
OBJECT HIT() will return a one if the two specified 3D objects hit each other
OBJECT SCREEN X() will return the current X screen coordinate of the 3D object
OBJECT SCREEN Y() will return the current Y screen coordinate of the 3D object
OBJECT IN SCREEN() will return a one if the specified 3D object is on the screen
GET STATIC COLLISION HIT() returns whether an area is touching a static box
GET STATIC COLLISION X() returns sliding data for X after collision detected
GET STATIC COLLISION Y() returns sliding data for Y after collision detected
GET STATIC COLLISION Z() returns sliding data for Z after collision detected
STATIC LINE OF SIGHT() returns whether a projected line hits a static box
STATIC LINE OF SIGHT X() returns X position of hit after obstruction detected
STATIC LINE OF SIGHT Y() returns Y position of hit after obstruction detected
STATIC LINE OF SIGHT Z() returns Z position of hit after obstruction detected
GET OBJECT COLLISION X() returns sliding data for X if flag is zero
GET OBJECT COLLISION Y() returns sliding data for Y if flag is zero
GET OBJECT COLLISION Z() returns sliding data for Z if flag is zero
LIMB EXIST() will return a one if the specified limb of the 3D object exists
LIMB OFFSET X() will return the X offset of the specified limb of the 3D object
LIMB OFFSET Y() will return the Y offset of the specified limb of the 3D object
LIMB OFFSET Z() will return the Z offset of the specified limb of the 3D object
LIMB ANGLE X() will return the X angle of the specified limb of the 3D object
LIMB ANGLE Y() will return the Y angle of the specified limb of the 3D object
LIMB ANGLE Z() will return the Z angle of the specified limb of the 3D object
LIMB POSITION X() will return the world X position of the specified limb
LIMB POSITION Y() will return the world Y position of the specified limb
LIMB POSITION Z() will return the world Z position of the specified limb
LIMB DIRECTION X() will return the world X angle of the specified limb
LIMB DIRECTION Y() will return the world Y angle of the specified limb
LIMB DIRECTION Z() will return the world Z angle of the specified limb
LIMB TEXTURE() will return the image number used to texture the limb of the 3D object
LIMB VISIBLE() will return a one if the specified limb exists
LIMB TEXTURE NAME() returns the internal name of the limb texture
MESH EXIST() will return a one if the specified mesh exists
CURVEVALUE() will return an auto-interpolated value based on a given speed
CURVEANGLE() will return an auto-interpolated angle based on a given speed
WRAPVALUE() will return a value that wraps any given value between 0 and 360
NEWXVALUE() will return the new x position value of an angled movement
NEWYVALUE() will return the new y position value of an angled movement
NEWZVALUE() will return the new z position value of an angled movement
ALPHABLENDING AVAILABLE() will return whether the 3D card supports alphablending
FILTERING AVAILABLE() will return whether the 3D card supports filtering
FOG AVAILABLE() will return whether the 3D card supports fog
3DBLIT AVAILABLE() will return whether the 3D card supports 2D in 3D